package com.example.bootdemo.animal;


import org.junit.Test;

public class Animal {
    @Test
    public void main() {
        Pet pet = new Dog();
        pet.eat();
    }
    abstract class Pet {
        abstract void eat();
    }
    class Dog extends Pet {
        @Override
        void eat() {
            System.out.println("1111111111");
        }
    }

}
